Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

e2e: add testcase to test snapshot deletion in specific case #4147

Closed
wants to merge 2 commits into from

Conversation

Rakshith-R
Copy link
Contributor

Describe what this PR does

Provide some context for the reviewer

Is there anything that requires special attention

Do you have any questions?

Is the change backward compatible?

Are there concerns around backward compatibility?

Provide any external context for the change, if any.

For example:

  • Kubernetes links that explain why the change is required
  • CSI spec related changes/catch-up that necessitates this patch
  • golang related practices that necessitates this change

Related issues

Mention any github issues relevant to this PR. Adding below line
will help to auto close the issue once the PR is merged.

Fixes: #issue_number

Future concerns

List items that are not part of the PR and do not impact it's
functionality, but are work items that can be taken up subsequently.


Show available bot commands

These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:

  • /retest ci/centos/<job-name>: retest the <job-name> after unrelated
    failure (please report the failure too!)

@mergify mergify bot added the component/testing Additional test cases or CI work label Sep 22, 2023
@Rakshith-R
Copy link
Contributor Author

/test ci/centos/mini-e2e-helm/k8s-1.28

@Rakshith-R
Copy link
Contributor Author

As expect the case fails.

https://jenkins-ceph-csi.apps.ocp.cloud.ci.centos.org/blue/organizations/jenkins/mini-e2e-helm_k8s-1.28/detail/mini-e2e-helm_k8s-1.28/140/pipeline

  I0922 10:03:58.630392       1 utils.go:195] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f GRPC call: /csi.v1.Controller/CreateSnapshot
  I0922 10:03:58.630463       1 utils.go:206] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f GRPC request: {"name":"snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f","parameters":{"clusterID":"74311f7e-caee-45b0-ae06-fd137ab80e6a","csi.storage.k8s.io/volumesnapshot/name":"rbd-88454","csi.storage.k8s.io/volumesnapshot/namespace":"rbd-8845","csi.storage.k8s.io/volumesnapshotcontent/name":"snapcontent-3c14c802-528c-43e0-b42f-7a70afc2a41f"},"secrets":"***stripped***","source_volume_id":"0001-0024-74311f7e-caee-45b0-ae06-fd137ab80e6a-0000000000000002-40d0df88-da8c-40b1-92a7-895670e5735b"}
  I0922 10:03:58.631884       1 omap.go:88] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f got omap values: (pool="replicapool", namespace="", name="csi.volume.40d0df88-da8c-40b1-92a7-895670e5735b"): map[csi.imageid:13d9f4e6ac74 csi.imagename:csi-vol-40d0df88-da8c-40b1-92a7-895670e5735b csi.volname:pvc-a87de57b-4d93-4422-92ea-c6725b76876e csi.volume.owner:rbd-8845]
  I0922 10:03:58.645992       1 omap.go:88] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f got omap values: (pool="replicapool", namespace="", name="csi.snaps.default"): map[]
  I0922 10:03:58.657851       1 controllerserver.go:549] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f snapshots count 4 on image: replicapool/csi-vol-40d0df88-da8c-40b1-92a7-895670e5735b reached configured hard limit 3
  I0922 10:03:58.757374       1 rbd_util.go:823] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f rbd: adding task to flatten image "replicapool/csi-snap-d85711b8-99bc-4754-a1e7-b5780aeacf0f"
  E0922 10:03:58.764089       1 rbd_util.go:839] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to add task flatten for replicapool/csi-snap-d85711b8-99bc-4754-a1e7-b5780aeacf0f : rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-d85711b8-99bc-4754-a1e7-b5780aeacf0f does not exist)"
  E0922 10:03:58.764118       1 rbd_util.go:787] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to flatten replicapool/csi-snap-d85711b8-99bc-4754-a1e7-b5780aeacf0f; err rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-d85711b8-99bc-4754-a1e7-b5780aeacf0f does not exist)"
  I0922 10:03:58.764130       1 rbd_util.go:823] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f rbd: adding task to flatten image "replicapool/csi-snap-0e6e6aad-0f2c-452c-af4b-3fc85ab12437"
  E0922 10:03:58.769610       1 rbd_util.go:839] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to add task flatten for replicapool/csi-snap-0e6e6aad-0f2c-452c-af4b-3fc85ab12437 : rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-0e6e6aad-0f2c-452c-af4b-3fc85ab12437 does not exist)"
  E0922 10:03:58.769635       1 rbd_util.go:787] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to flatten replicapool/csi-snap-0e6e6aad-0f2c-452c-af4b-3fc85ab12437; err rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-0e6e6aad-0f2c-452c-af4b-3fc85ab12437 does not exist)"
  I0922 10:03:58.769645       1 rbd_util.go:823] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f rbd: adding task to flatten image "replicapool/csi-snap-8ff98a7d-88aa-4593-8fb2-2333ac13e6b5"
  E0922 10:03:58.775156       1 rbd_util.go:839] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to add task flatten for replicapool/csi-snap-8ff98a7d-88aa-4593-8fb2-2333ac13e6b5 : rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-8ff98a7d-88aa-4593-8fb2-2333ac13e6b5 does not exist)"
  E0922 10:03:58.775184       1 rbd_util.go:787] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to flatten replicapool/csi-snap-8ff98a7d-88aa-4593-8fb2-2333ac13e6b5; err rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-8ff98a7d-88aa-4593-8fb2-2333ac13e6b5 does not exist)"
  I0922 10:03:58.775195       1 rbd_util.go:823] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f rbd: adding task to flatten image "replicapool/csi-snap-b131f653-0a22-45fc-8d2c-ec038726e13e"
  E0922 10:03:58.780658       1 rbd_util.go:839] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to add task flatten for replicapool/csi-snap-b131f653-0a22-45fc-8d2c-ec038726e13e : rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-b131f653-0a22-45fc-8d2c-ec038726e13e does not exist)"
  E0922 10:03:58.780686       1 rbd_util.go:787] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f failed to flatten replicapool/csi-snap-b131f653-0a22-45fc-8d2c-ec038726e13e; err rados: ret=-2, No such file or directory: "[errno 2] RBD image not found (Image replicapool/csi-snap-b131f653-0a22-45fc-8d2c-ec038726e13e does not exist)"
  E0922 10:03:58.780748       1 utils.go:210] ID: 49 Req-ID: snapshot-3c14c802-528c-43e0-b42f-7a70afc2a41f GRPC error: rpc error: code = ResourceExhausted desc = rbd image replicapool/csi-vol-40d0df88-da8c-40b1-92a7-895670e5735b has 4 snapshots

@Rakshith-R Rakshith-R force-pushed the checks-snap-limit branch 3 times, most recently from e0c50a0 to 4ffb174 Compare September 25, 2023 09:18
@Rakshith-R
Copy link
Contributor Author

/test ci/centos/mini-e2e-helm/k8s-1.28

Signed-off-by: Rakshith R <[email protected]>
@Rakshith-R
Copy link
Contributor Author

/test ci/centos/mini-e2e-helm/k8s-1.28

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed in two weeks if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Oct 25, 2023
Copy link

github-actions bot commented Nov 8, 2023

This pull request has been automatically closed due to inactivity. Please re-open if these changes are still required.

@github-actions github-actions bot closed this Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/testing Additional test cases or CI work stale
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant